﻿using System;
using System.Data;
using ZX.HIS.Common;
namespace ZX.HIS.IDAL
{
	/// <summary>
	/// 接口层AuthorInfo
	/// </summary>
	public interface IAuthorInfo
    {
        #region Depart自写方法
        /// <summary>
        /// 权限表分页显示
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        PageClass<ZX.HIS.Model.AuthorInfo> allAuthorInfo(int PageIndex, int PageSize);

        /// <summary>
        /// 获得一个 权限表实体类
        /// </summary>
        /// <param name="PatientId"></param>
        /// <returns></returns>
        ZX.HIS.Model.AuthorInfo GetAuthorInfoModel(int AuthorId);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="AuthorId"></param>
        /// <param name="AuthorName"></param>
        /// <param name="AuthorUrl"></param>
        /// <param name="AuthorParentId"></param>
        /// <returns></returns>
        bool updAuthorInfo(int AuthorId, string AuthorName, string AuthorUrl, int AuthorParentId);
       
        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="AuthorId"></param>
        /// <param name="AuthorState"></param>
        /// <returns></returns>
        bool delAuthorInfo(int AuthorId, int AuthorState);


        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="HospitalId"></param>
        /// <param name="AuthorName"></param>
        /// <param name="AuthorUrl"></param>
        /// <param name="AuthorParentId"></param>
        /// <param name="AuthorState"></param>
        /// <returns></returns>
        bool addAuthorInfo(int HospitalId, string AuthorName, string AuthorUrl, int AuthorParentId, int AuthorState);
    
       
        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(int AuthorId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.AuthorInfo model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.AuthorInfo model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int AuthorId);
        //bool DeleteList(string AuthorIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.AuthorInfo GetModel(int AuthorId);
        //ZX.HIS.Model.AuthorInfo DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  成员方法
		#region  MethodEx

		#endregion  MethodEx
	} 
}
